import request from '@/utils/request'
/**
 *
 * 量子储值卡
 */
export function getLabelList(data) {
  return request({
    url: '/Gep/get_label_list',
    method: 'post',
    data,
  })
}

// 获取卡头
export function getCardBinds(data) {
  return request({
    url: '/Gep/get_card_binds',
    method: 'post',
    data,
  })
}

// 获取卡段详情
export function getCardBinDetail(data) {
  return request({
    url: '/Gep/get_cardbin_detail',
    method: 'post',
    data,
  })
}

// 卡头列表
export function getCardListHeader(data) {
  return request({
    url: '/Gep/get_card_head',
    method: 'post',
    data,
  })
}

// 卡头列表
export function getCardList(data) {
  return request({
    url: '/Gep/get_card_list',
    method: 'post',
    data,
  })
}

export function getCardFee(data) {
  return request({
    url: '/Gep/get_open_card_fee',
    method: 'post',
    data,
  })
}
export function getChargeFee(data) {
  return request({
    url: '/Gep/get_charge_fee',
    method: 'post',
    data,
  })
}
// 星座卡详情
export function getPrepaidCardDetail(data) {
  return request({
    url: '/Gep/get_card_detail',
    method: 'post',
    data,
  })
}
// 星座卡详情-交易类型
export function getCardType(data) {
  return request({
    url: '/Gep/get_trade_type_list',
    method: 'post',
    data,
  })
}
// 星座卡详情-交易状态
export function getCardStatus(data) {
  return request({
    url: '/Gep/get_trade_status_list',
    method: 'post',
    data,
  })
}
// 批量修改标签
export function updateLabel(data) {
  return request({
    url: 'Gep/modify_label',
    method: 'post',
    data,
  })
}

/**
 *
 * 交易查询
 */
export function getCardTradeList(data) {
  return request({
    url: '/Gep/get_card_trade_list',
    method: 'post',
    data,
  })
}

// 交易类型
export function getMoneyTypeList(data) {
  return request({
    url: '/Gep/get_money_type_list',
    method: 'post',
    data,
  })
}

export function getWholenameList(data) {
  return request({
    url: '/Gep/get_wholename_list',
    method: 'post',
    data,
  })
}

// 交易状态
export function getAllCardStatus(data) {
  return request({
    url: '/Gep/get_all_card_status',
    method: 'post',
    data,
  })
}

/**
 *
 * 账户明细
 */
// 交易列表
export function getUserMoneyList(data) {
  return request({
    url: '/Gep/get_user_money_list',
    method: 'post',
    data,
  })
}

// 批量开卡上传-无持卡
export function importNoHoldExcel(cardbin, data) {
  return request({
    url: `/import/import_no_hold_excel?cardbin=${cardbin}`,
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data,
  })
}

// 批量开卡上传-持卡
export function importHoldExcel(cardbin, data) {
  return request({
    url: `/import/import_hold_excel?cardbin=${cardbin}`,
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data,
  })
}
